package com.school.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class IndexConfig {
    private Long configId;
    private String configName;
    private Byte configType;
    private Long goodsId;
    private String redirectUrl;
    private Integer configRank;
    private Byte isDeleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer createUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Integer updateUser;

    public IndexConfig() {
    }

    public IndexConfig(Long configId, String configName, Byte configType, Long goodsId, String redirectUrl, Integer configRank, Byte isDeleted, Date createTime, Integer createUser, Date updateTime, Integer updateUser) {
        this.configId = configId;
        this.configName = configName;
        this.configType = configType;
        this.goodsId = goodsId;
        this.redirectUrl = redirectUrl;
        this.configRank = configRank;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
        this.createUser = createUser;
        this.updateTime = updateTime;
        this.updateUser = updateUser;
    }

    /**
     * 获取
     * @return configId
     */
    public Long getConfigId() {
        return configId;
    }

    /**
     * 设置
     * @param configId
     */
    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    /**
     * 获取
     * @return configName
     */
    public String getConfigName() {
        return configName;
    }

    /**
     * 设置
     * @param configName
     */
    public void setConfigName(String configName) {
        this.configName = configName;
    }

    /**
     * 获取
     * @return configType
     */
    public Byte getConfigType() {
        return configType;
    }

    /**
     * 设置
     * @param configType
     */
    public void setConfigType(Byte configType) {
        this.configType = configType;
    }

    /**
     * 获取
     * @return goodsId
     */
    public Long getGoodsId() {
        return goodsId;
    }

    /**
     * 设置
     * @param goodsId
     */
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取
     * @return redirectUrl
     */
    public String getRedirectUrl() {
        return redirectUrl;
    }

    /**
     * 设置
     * @param redirectUrl
     */
    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    /**
     * 获取
     * @return configRank
     */
    public Integer getConfigRank() {
        return configRank;
    }

    /**
     * 设置
     * @param configRank
     */
    public void setConfigRank(Integer configRank) {
        this.configRank = configRank;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return createUser
     */
    public Integer getCreateUser() {
        return createUser;
    }

    /**
     * 设置
     * @param createUser
     */
    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return updateUser
     */
    public Integer getUpdateUser() {
        return updateUser;
    }

    /**
     * 设置
     * @param updateUser
     */
    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public String toString() {
        return "IndexConfig{configId = " + configId + ", configName = " + configName + ", configType = " + configType + ", goodsId = " + goodsId + ", redirectUrl = " + redirectUrl + ", configRank = " + configRank + ", isDeleted = " + isDeleted + ", createTime = " + createTime + ", createUser = " + createUser + ", updateTime = " + updateTime + ", updateUser = " + updateUser + "}";
    }

    // Getters and Setters
}

